package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbUserJournalCommentService;
import com.gidgabs.modules.dao.TbUserJournalCommentDao;
import com.gidgabs.modules.entity.TbUserJournalCommentEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserJournalCommentServiceImpl implements TbUserJournalCommentService {
	@Autowired
	private TbUserJournalCommentDao userJournalCommentDao;
	
	@Override
	public TbUserJournalCommentEntity queryObject(Integer id){
		return userJournalCommentDao.queryObject(id);
	}
	
	@Override
	public List<TbUserJournalCommentEntity> queryList(Map<String, Object> map){
		return userJournalCommentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userJournalCommentDao.queryTotal(map);
	}
	
	@Override
	public void save(TbUserJournalCommentEntity userJournalComment){
		userJournalCommentDao.save(userJournalComment);
	}
	
	@Override
	public void update(TbUserJournalCommentEntity userJournalComment){
		userJournalCommentDao.update(userJournalComment);
	}
	
	@Override
	public void delete(Integer id){
		userJournalCommentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userJournalCommentDao.deleteBatch(ids);
	}
	
}
